package com.yz.center.common.ex;

import com.yz.center.common.result.ResultStatus;
import lombok.Getter;

/**
 * @className: BaseException
 * @author: LN
 * @date: 2024/1/2 11:00
 * @version: 1.0
 * 父错误信息代码
 */
@Getter
public class BaseException extends RuntimeException{
    private final ResultStatus resultStatus;

    public BaseException(ResultStatus resultStatus){
        super(resultStatus.getMsg());
        this.resultStatus=resultStatus;
    }
}
